package library.system.entity;

import java.io.Serializable;

public class Book implements Serializable {
    private String isbn;       // ISBN号
    private String name;       // 书名
    private String author;     // 作者
    private String press;      // 出版社
    private int stock;         // 库存数量（新增）

    // 构造方法（新增库存参数）
    public Book(String isbn, String name, String author, String press, int stock) {
        this.isbn = isbn;
        this.name = name;
        this.author = author;
        this.press = press;
        this.stock = stock;
    }

    // Getter和Setter
    public String getIsbn() { return isbn; }
    public String getName() { return name; }
    public String getAuthor() { return author; }
    public String getPress() { return press; }
    public int getStock() { return stock; }
    public void setStock(int stock) { this.stock = stock; }
}